/**
 * @ Author: hongjiazhun
 * @ Create Time: 2023-03-14 19:50:59
 * @ Modified by: hongjiazhun
 * @ Modified time: 2023-03-29 00:17:19
 * @ Description:排班-主表
 */

import request from '@/utils/request'

// 获取列表
export const getList = (params) => {
  return request({
    url: '/schedule/schedule/listForDept',
    method: 'get',
    params
  })
}


// 获取信息
export const getInfo = (id) => {
  return request({
    url: '/schedule/schedule-dept/' + id,
    method: 'get',
  })
}

// 编辑
export function submit(data) {
  return request({
    url: '/schedule/schedule-dept-detail/submit',
    method: 'post',
    data
  })
}

// 获取字典
export const getUserList = (params = {}) => request({
  url: '/xmu-sys/user/userList',
  method: 'get',
  params
})

// 批量导入
export const multiImportData = (data) => {
  return request({
    url: '/schedule/schedule-dept-detail/importMultiplyS',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}